package org.example.myleet.Utils;

public class Node {
    public int val;
    public Node prev;
    public Node next;
    public Node child;

    public Node(int val) {
        this.val = val;
    }

    public Node() {
    }

    @Override
    public String toString() {
        if (next != null) {
            return val + "," + next.toString();
        }
        return val + "";
    }
}
